/* PC端响应式样式 */

/* 基础断点定义 */
:root {
  --mobile-max: 768px;
  --tablet-min: 769px;
  --tablet-max: 1024px;
  --desktop-min: 1025px;
  --desktop-lg: 1440px;
}

/* 移动端优先的基础样式 */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* 平板端样式 */
@media (min-width: 769px) {
  .container {
    padding: 0 2rem;
  }
  
  .game-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 2rem;
    align-items: start;
  }
  
  .sidebar {
    position: sticky;
    top: 2rem;
    height: fit-content;
  }
}

/* PC端样式 */
@media (min-width: 1025px) {
  .container {
    padding: 0 3rem;
  }
  
  .game-layout {
    grid-template-columns: 1fr 350px;
    gap: 3rem;
  }
  
  .hero-section {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: center;
  }
  
  .features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
  
  .steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
  }
  
  .stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
  }
}

/* 大屏幕PC样式 */
@media (min-width: 1440px) {
  .container {
    max-width: 1400px;
    padding: 0 4rem;
  }
  
  .game-layout {
    grid-template-columns: 1fr 400px;
    gap: 4rem;
  }
}

/* 游戏画布响应式 */
.game-canvas-container {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
}

@media (min-width: 769px) {
  .game-canvas-container {
    max-width: 800px;
  }
}

@media (min-width: 1025px) {
  .game-canvas-container {
    max-width: 1000px;
  }
}

/* 玩家列表响应式 */
.player-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

@media (min-width: 769px) {
  .player-list {
    gap: 1rem;
  }
}

/* 按钮响应式 */
.btn {
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
}

@media (min-width: 769px) {
  .btn {
    padding: 1rem 2rem;
    font-size: 1.1rem;
  }
}

/* 卡片响应式 */
.card {
  padding: 1.5rem;
  border-radius: 0.5rem;
}

@media (min-width: 769px) {
  .card {
    padding: 2rem;
    border-radius: 1rem;
  }
}

/* 字体响应式 */
.text-title {
  font-size: 1.5rem;
}

.text-subtitle {
  font-size: 1.1rem;
}

@media (min-width: 769px) {
  .text-title {
    font-size: 2rem;
  }
  
  .text-subtitle {
    font-size: 1.3rem;
  }
}

@media (min-width: 1025px) {
  .text-title {
    font-size: 2.5rem;
  }
  
  .text-subtitle {
    font-size: 1.5rem;
  }
}

/* 间距响应式 */
.section {
  padding: 2rem 0;
}

@media (min-width: 769px) {
  .section {
    padding: 3rem 0;
  }
}

@media (min-width: 1025px) {
  .section {
    padding: 4rem 0;
  }
}

/* 导航栏响应式 */
.navbar {
  padding: 1rem;
}

@media (min-width: 769px) {
  .navbar {
    padding: 1.5rem 2rem;
  }
}

/* 模态框响应式 */
.modal {
  width: 90%;
  max-width: 400px;
}

@media (min-width: 769px) {
  .modal {
    width: 80%;
    max-width: 600px;
  }
}

@media (min-width: 1025px) {
  .modal {
    width: 60%;
    max-width: 800px;
  }
}